package core;

public class Point3D {
	
	private int mX;
	
	private int mY;
	
	private int mZ;
	
	public Point3D(int x, int y){
		this(x,y,1);
	}
	
	public Point3D(int x, int y, int z){
		mX = x;
		mY = y;
		mZ = z;
	}
	
	public int getX() {
		return mX;
	}
	public void setX(int x) {
		mX = x;
	}
	public int getY() {
		return mY;
	}
	public void setY(int y) {
		mY = y;
	}
	public int getZ() {
		return mZ;
	}
	public void setZ(int z) {
		mZ = z;
	}	

	public boolean equals(Object obj) {
		
		if(obj instanceof Point3D) {
			Point3D pt = (Point3D) obj;
			return getX() == pt.getX() && getY() == pt.getY() && getZ() == pt.getZ();
		}
		
		return false;
	}
}
